package com.jrx.anytxn.reporting.service;

import com.jrx.anytxn.common.exception.TxnBizException;
import com.jrx.anytxn.common.exception.TxnException;
import com.jrx.anytxn.param.entity.PrOrganizationTable;
import com.jrx.anytxn.transaction.entity.AmLoanAccountInfo;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface ILSPuHuiService {

    /**
     * 根据借据信息生成个人违约信息文件
     * @param amLoanAccountInfo
     * @return
     */
    String createBreakContractMessage(AmLoanAccountInfo amLoanAccountInfo) throws TxnBizException;

    /**
     * 生成对应文件
     * @param messageList
     * @param reportingPath
     * @param fileName
     * @param fileType
     * @throws IOException
     */
    void generateUnionFile(List<String> messageList, String reportingPath , String fileName, String fileType) throws TxnException;

    /**
     * 合并文件
     * @param org
     * @param filePath
     * @param nftsPath
     * @throws TxnException
     */
    void mergeFile(PrOrganizationTable org, String filePath, String nftsPath,String outPath) throws IOException;
}
